﻿////公共JavaScript
//JavaScriptServer = "http://10.17.0.141/smkzyzt";
////工作流服务URL
//WFServiceUrl = "http://10.17.0.141/smWorkFlowService";
////数据服务URL
//DBCenterServiceUrl = "http://10.17.0.141/smDBCenterService";
////框架站点URL
//YZTUrl = "http://10.17.0.141/smkzyzt";
////IServer服务地址
//IServerUrl = "http://10.17.0.141:8090/iserver/services";
////审批登记站点URL
//SPDJUrl = "http://10.17.0.141/smkcspdj";
////档案系统站点URL
//DAUrl = "http://10.17.0.141/SmDA/YWDAManager.html";

////silverlight一张图
//slYZTUrl = "http://10.17.0.141/mapsystem.web/default.aspx";
////默认行政区信息
//defaultXZQDM = "140600";
//defaultXZQMC = "朔州市";

////公共javascript
//document.writeln("<script type='text/javascript' src='"+JavaScriptServer+"/Common/jquery-1.7.2.min.js'></script>");
//document.writeln("<script type='text/javascript' src='"+JavaScriptServer+"/Common/jquery.query-2.1.7.js'></script>");
//document.writeln("<script type='text/javascript' src='" + JavaScriptServer + "/Common/json2.js'></script>");
//document.writeln("<script type='text/javascript' src='" + JavaScriptServer + "/Common/jquery.message.js'></script>");
//document.writeln("<script type='text/javascript' src='" + JavaScriptServer + "/Common/SmObjects.js'></script>");


var baseurlmapjs = "";
var DBCenterServiceUrl="";
(function () {
    var r = new RegExp("(^|(.*?\\/))(JSConfig\.js)(\\?|$)"),
    s = document.getElementsByTagName('script'),
    src, m;
    for (var i = 0, len = s.length; i < len; i++) {
        src = s[i].getAttribute('src');
        if (src) {
            var m = src.match(r);
            if (m) {
                baseurlmapjs = m[1];
                break;
            }
        }
    }
    function inputScript(inc) {
        var script = '<' + 'script type="text/javascript" src="' + inc + '"' + '><' + '/script>';
        document.writeln(script);
    }
    function inputCSS(style) {
        var css = '<' + 'link rel="stylesheet" href="' +style + '"' + '><' + '/>';
        document.writeln(css);
    }
    DBCenterServiceUrl = baseurlmapjs + "../WebService/Core";
    function add() {
        inputCSS(baseurlmapjs+'JQuery/jquery-ui-themes-1.8.16/redmond/jquery.ui.all.css');
         inputScript(baseurlmapjs + 'My97DatePicker/WdatePicker.js');
        inputScript(baseurlmapjs + 'JQuery/jquery-1.7.2.min.js');
        inputScript(baseurlmapjs + 'JQuery/jquery.form.js');
        inputScript(baseurlmapjs + 'JQuery/jquery.query-2.1.7.js');
        inputScript(baseurlmapjs + 'JQuery/jquery-ui-1.8.16.min.js');
        inputScript(baseurlmapjs + 'JQuery/json2.js');
        inputScript(baseurlmapjs + 'SmObjects.js');
        inputScript(baseurlmapjs + 'SomeFunction.js');
        inputScript(baseurlmapjs + 'spcommon.js');
        inputScript(baseurlmapjs + '../Controls/lsfTabControl/lsfTabControl.js');
    }
    add();
})();


